//
//  Bitmap.m
//
//  Created by Colin Leung on 2010-05-30.
//  Copyright (c) 2010 digi3studio. All rights reserved.
//

#import "Bitmap.h"

@implementation Bitmap:DisplayObject
	@synthesize bitmapData;

	-(void) setBitmapData:(BitmapData*)aBitmapData{
		layer.contents = (id)aBitmapData.image;
		layer.anchorPoint = CGPointMake(0.0,0.0);
		layer.bounds = CGRectMake(0.0, 0.0, CGImageGetWidth(aBitmapData.image), CGImageGetHeight(aBitmapData.image));
	}
@end